# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=frida-push
pkgver=1.0.8
pkgrel=9
pkgdesc='Wrapper tool to identify the remote device and push device specific frida-server binary'
groups=('blackarch' 'blackarch-mobile' 'blackarch-fingerprint')
url='https://github.com/AndroidTamer/frida-push'
arch=('any')
license=('GPL3')
depends=('python' 'python-frida' 'python-requests' 'python-future'
         'python-backports-lzma')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('0c5e61e771e820f311de17fa8cc52e11edf494c3afc24dcd3f86dcadf17b456d6ba5c341266a197074e9acde2ec5d72186d3e387ecc2ec0bc442a57f3ca7bf28')

build() {
  cd "$pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

